Unable to write into user settings